<?php
include "header.php";
$sql=mysql_query("select * from catagory order by id asc");
?>
<style>
    td{line-height: 40px;}
    td a{color:#666};
</style>
    <table align="center" style="padding-top: 15px">
    <thead>
    <th width="60">ID</th>
    <th width="300">栏目名称</th>
    <th width="100">操作</th>
    </thead>
    <tbody>
<?php
while($b=mysql_fetch_assoc($sql)){
    ?>
    <tr>
        <td align="center"><?php echo $b['id'] ?></td>
        <td align="center"><?php echo $b['catname'] ?></td>
        <td align="center">
            <a href="javascript:if(confirm('确认要删除该内容么？'))location='category.php?act=delete&id=<?php echo $b['id'] ?>'">删除</a>/
            <a href="javascript:if(confirm('确认要修改该内容么？'))location='category.php?act=update&id=<?php echo $b['id'] ?>'">修改</a></td>
    </tr>

    <?php
}
?>
    </tbody>
    </table>
